<?php
PageUtil::addVar("stylesheet","<link href=\"".$stylepath."/dropzone.css\" rel=\"stylesheet\">");
PageUtil::addVar("javascript_body","<script type=\"text/javascript\" src=\"".$jspath."/dropzone.js\"></script>");
?>
<?php
    if (empty($resList)) {
?>
<div class ="col-md-1"></div>
 <div class ="col-md-10">
<section class="cat-widget wdg-cat-opposite clearfix">
  <div class="widget-title">
      <h3><a href="<?php echo base_url("admin/restaurant");?>">Restaurant</a></h3>
      <span class="sub-title">จัดการรูปภาพร้านอาหาร</span>
      <div class="sep-widget"></div>
  </div>
    <div class="text-center error">
      <h2>ไม่มีข้อมูลรูปภาพ</h2>
    </div>
    <?php
    }
    else {
    ?>
    <div class="show-img">
        <table class="table table-hover">
        <tr class="success">
          <th>ID</th>
          <th>รูป</th>
          <th>ขนาด</th>
          <th>ผู้โพส</th>
          <th>วันที่โพส</th>
          <th>Tool</th>
        </tr>


    <?php
    foreach ($imgList as $key => $value) {
      
    ?>
      
        <tr class="warning">
          <td><?php echo $value["id"];?></td>
          <td><a href="<?php echo base_url("admin/restaurant/img/".$value["id"]);?>">
            <img src="" data-src="holder.js/185x160/vine" alt="" /></a></td>
          <td><?php echo $value["title"];?></td>
          <td>ยัง</td>
          <td><?php echo $value["cr_date"];?></td>
          <td><a class="btn btn-warning btn-sm glyphicon glyphicon-zoom-in" href="<?php echo base_url("admin/restaurant/edit/".$value["id"]);?>" title='edit'></a> :::: 
              <a class="btn btn-danger btn-sm glyphicon glyphicon-remove" href="<?php echo base_url("admin/restaurant/del/".$value["id"]);?>" title='delete'></a></td>
        </tr>
      


      <?php

    }
      ?>
      </table>
    </div>
    <?php
    }
    ?> 

    <br clear="all"><center><div style="font-family:Verdana, Geneva, sans-serif; font-size:24px;" align="center">เพิ่มรูปภาพใหม่</div>
    <br clear="all" />

    <div style="font-family:Verdana, Geneva, sans-serif; font-size:11px; color:red;" align="center">คลิ๊กที่กล่องด้านล่าง</div>
    <div class="glyphicon glyphicon-arrow-down"></div>
    <br clear="all" />
    <!-- This is all you need for the file upload. You can change the CSS at the head section of this page from dropzone.css to basic.css and then open this page via your web browser to see how the screen will look. You can then use of the CSS file that you like. -->

    <form action="../../../vpb_multi_upload.php" class="dropzone"></form>
    </center>
</section>
</div>
<div class ="col-md-1"></div>
 